package com.demo.web.controller;

import javax.servlet.*;
import java.io.IOException;


public class DemoServletController implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        servletResponse.setContentType("text/plain; charset=utf-8");
        servletResponse.getWriter().print("DemoServletController:sdfsfsfsdfsfsfsfsffsfsfsfsfsfsf");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
